-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Schema } from "superflare"; | ||
|
||
export default function () { | ||
return Schema.create("users", (table) => { | ||
table.increments("id"); | ||
table.string("name").nullable(); | ||
table.string("email").unique(); | ||
table.string("password"); | ||
table.timestamps(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Schema } from "superflare"; | ||
|
||
export default function () { | ||
return Schema.create("articles", (table) => { | ||
table.increments("id"); | ||
table.string("title"); | ||
table.string("slug").unique(); | ||
table.text("content").nullable(); | ||
table.integer("userId"); | ||
table.string("status"); | ||
table.timestamps(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Migration number: 0000 2024-11-15T19:40:10.787Z | ||
-- Autogenerated by Superflare. Do not edit this file directly. | ||
CREATE TABLE users ( | ||
id INTEGER PRIMARY KEY, | ||
name TEXT, | ||
email TEXT NOT NULL UNIQUE, | ||
password TEXT NOT NULL, | ||
createdAt DATETIME NOT NULL, | ||
updatedAt DATETIME NOT NULL | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Migration number: 0001 2024-11-15T19:40:10.789Z | ||
-- Autogenerated by Superflare. Do not edit this file directly. | ||
CREATE TABLE articles ( | ||
id INTEGER PRIMARY KEY, | ||
title TEXT NOT NULL, | ||
slug TEXT NOT NULL UNIQUE, | ||
content TEXT, | ||
userId INTEGER NOT NULL, | ||
status TEXT NOT NULL, | ||
createdAt DATETIME NOT NULL, | ||
updatedAt DATETIME NOT NULL | ||
); |