Created
June 30, 2022 09:27
-
-
Save nbnD/58bef80fd09d5fcb6a45d09475030003 to your computer and use it in GitHub Desktop.
CRUD
This file contains hidden or 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
static Future<void> createTables(sql.Database database) async { | |
await database.execute("""CREATE TABLE items( | |
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | |
title TEXT, | |
description TEXT, | |
createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | |
) | |
"""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment