Last active
March 8, 2020 15:56
-
-
Save merttoptas/be9c112e6c585f96ef1b9ad705153e46 to your computer and use it in GitHub Desktop.
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
import 'package:floor/floor.dart'; | |
@entity | |
class Student { | |
@PrimaryKey(autoGenerate: true) | |
final int id; | |
final String name; | |
final String school; | |
Student({this.id, this.name, this.school}); | |
@override | |
String toString() { | |
return 'Student{id: $id, name: $name, school: $school}'; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment