{ "id": "b7406ed0-51d0-4217-92f0-0131b12db197", "prevId": "5412e543-4a9c-416f-87b1-b8a405a19172", "version": "7", "dialect": "postgresql", "tables": { "public.NotificationSettings": { "name": "NotificationSettings", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "userId": { "name": "userId", "type": "integer", "primaryKey": false, "notNull": true }, "enabled": { "name": "enabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "songRequestEnabled": { "name": "songRequestEnabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "songVotedEnabled": { "name": "songVotedEnabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "songPlayedEnabled": { "name": "songPlayedEnabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "refreshInterval": { "name": "refreshInterval", "type": "integer", "primaryKey": false, "notNull": true, "default": 60 }, "songVotedThreshold": { "name": "songVotedThreshold", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.Notification": { "name": "Notification", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "message": { "name": "message", "type": "text", "primaryKey": false, "notNull": true }, "read": { "name": "read", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "userId": { "name": "userId", "type": "integer", "primaryKey": false, "notNull": true }, "songId": { "name": "songId", "type": "integer", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.PlayTime": { "name": "PlayTime", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "startTime": { "name": "startTime", "type": "text", "primaryKey": false, "notNull": false }, "endTime": { "name": "endTime", "type": "text", "primaryKey": false, "notNull": false }, "enabled": { "name": "enabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.Schedule": { "name": "Schedule", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "songId": { "name": "songId", "type": "integer", "primaryKey": false, "notNull": true }, "playDate": { "name": "playDate", "type": "timestamp", "primaryKey": false, "notNull": true }, "played": { "name": "played", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "sequence": { "name": "sequence", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 }, "playTimeId": { "name": "playTimeId", "type": "integer", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.Semester": { "name": "Semester", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "isActive": { "name": "isActive", "type": "boolean", "primaryKey": false, "notNull": true, "default": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.SongBlacklist": { "name": "SongBlacklist", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "type": { "name": "type", "type": "BlacklistType", "typeSchema": "public", "primaryKey": false, "notNull": true }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": true }, "reason": { "name": "reason", "type": "text", "primaryKey": false, "notNull": false }, "isActive": { "name": "isActive", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "createdBy": { "name": "createdBy", "type": "integer", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.Song": { "name": "Song", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "artist": { "name": "artist", "type": "text", "primaryKey": false, "notNull": true }, "requesterId": { "name": "requesterId", "type": "integer", "primaryKey": false, "notNull": true }, "played": { "name": "played", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "playedAt": { "name": "playedAt", "type": "timestamp", "primaryKey": false, "notNull": false }, "semester": { "name": "semester", "type": "text", "primaryKey": false, "notNull": false }, "preferredPlayTimeId": { "name": "preferredPlayTimeId", "type": "integer", "primaryKey": false, "notNull": false }, "cover": { "name": "cover", "type": "text", "primaryKey": false, "notNull": false }, "musicPlatform": { "name": "musicPlatform", "type": "text", "primaryKey": false, "notNull": false }, "musicId": { "name": "musicId", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.SystemSettings": { "name": "SystemSettings", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "enablePlayTimeSelection": { "name": "enablePlayTimeSelection", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "siteTitle": { "name": "siteTitle", "type": "text", "primaryKey": false, "notNull": false }, "siteLogoUrl": { "name": "siteLogoUrl", "type": "text", "primaryKey": false, "notNull": false }, "schoolLogoHomeUrl": { "name": "schoolLogoHomeUrl", "type": "text", "primaryKey": false, "notNull": false }, "schoolLogoPrintUrl": { "name": "schoolLogoPrintUrl", "type": "text", "primaryKey": false, "notNull": false }, "siteDescription": { "name": "siteDescription", "type": "text", "primaryKey": false, "notNull": false }, "submissionGuidelines": { "name": "submissionGuidelines", "type": "text", "primaryKey": false, "notNull": false }, "icpNumber": { "name": "icpNumber", "type": "text", "primaryKey": false, "notNull": false }, "enableSubmissionLimit": { "name": "enableSubmissionLimit", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "dailySubmissionLimit": { "name": "dailySubmissionLimit", "type": "integer", "primaryKey": false, "notNull": false }, "weeklySubmissionLimit": { "name": "weeklySubmissionLimit", "type": "integer", "primaryKey": false, "notNull": false }, "showBlacklistKeywords": { "name": "showBlacklistKeywords", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "hideStudentInfo": { "name": "hideStudentInfo", "type": "boolean", "primaryKey": false, "notNull": true, "default": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.User": { "name": "User", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "grade": { "name": "grade", "type": "text", "primaryKey": false, "notNull": false }, "class": { "name": "class", "type": "text", "primaryKey": false, "notNull": false }, "role": { "name": "role", "type": "text", "primaryKey": false, "notNull": true, "default": "'USER'" }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": true }, "lastLogin": { "name": "lastLogin", "type": "timestamp", "primaryKey": false, "notNull": false }, "lastLoginIp": { "name": "lastLoginIp", "type": "text", "primaryKey": false, "notNull": false }, "passwordChangedAt": { "name": "passwordChangedAt", "type": "timestamp", "primaryKey": false, "notNull": false }, "forcePasswordChange": { "name": "forcePasswordChange", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "meowNickname": { "name": "meowNickname", "type": "text", "primaryKey": false, "notNull": false }, "meowBoundAt": { "name": "meowBoundAt", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.Vote": { "name": "Vote", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "songId": { "name": "songId", "type": "integer", "primaryKey": false, "notNull": true }, "userId": { "name": "userId", "type": "integer", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.BlacklistType": { "name": "BlacklistType", "schema": "public", "values": [ "SONG", "KEYWORD" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }