Skip to content

Commit 2abb26a

Browse files
committed
Regenerate sqlite entities as i64
1 parent feee59d commit 2abb26a

21 files changed

Lines changed: 79 additions & 79 deletions

examples/sqlite/src/entities/actor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "actor")]
88
pub struct Model {
99
#[sea_orm(primary_key)]
10-
pub actor_id: i32,
10+
pub actor_id: i64,
1111
pub first_name: String,
1212
pub last_name: String,
1313
pub last_update: DateTimeUtc,

examples/sqlite/src/entities/address.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "address")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub address_id: i32,
10+
pub address_id: i64,
1111
pub address: String,
1212
pub address2: Option<String>,
1313
pub district: String,
14-
pub city_id: i32,
14+
pub city_id: i64,
1515
pub postal_code: Option<String>,
1616
pub phone: String,
1717
pub last_update: DateTimeUtc,

examples/sqlite/src/entities/category.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "category")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]

examples/sqlite/src/entities/city.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "city")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub city_id: i32,
10+
pub city_id: i64,
1111
pub city: String,
1212
pub country_id: i16,
1313
pub last_update: DateTimeUtc,

examples/sqlite/src/entities/country.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "country")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]

examples/sqlite/src/entities/customer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "customer")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub customer_id: i32,
11-
pub store_id: i32,
10+
pub customer_id: i64,
11+
pub store_id: i64,
1212
pub first_name: String,
1313
pub last_name: String,
1414
pub email: Option<String>,
15-
pub address_id: i32,
15+
pub address_id: i64,
1616
pub active: i16,
1717
pub create_date: DateTimeUtc,
1818
pub last_update: DateTimeUtc,

examples/sqlite/src/entities/film.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "film")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub film_id: i32,
10+
pub film_id: i64,
1111
pub title: String,
1212
#[sea_orm(column_type = "Text", nullable)]
1313
pub description: Option<String>,

examples/sqlite/src/entities/film_actor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "film_actor")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub actor_id: i32,
10+
pub actor_id: i64,
1111
#[sea_orm(primary_key, auto_increment = false)]
12-
pub film_id: i32,
12+
pub film_id: i64,
1313
pub last_update: DateTimeUtc,
1414
#[sea_orm(
1515
belongs_to,

examples/sqlite/src/entities/film_category.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "film_category")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]
10-
pub film_id: i32,
10+
pub film_id: i64,
1111
#[sea_orm(primary_key, auto_increment = false)]
1212
pub category_id: i16,
1313
pub last_update: DateTimeUtc,

examples/sqlite/src/entities/film_text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.14
1+
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16
22
33
use sea_orm::entity::prelude::*;
44

55
#[sea_orm::model]
6-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6+
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
77
#[sea_orm(table_name = "film_text")]
88
pub struct Model {
99
#[sea_orm(primary_key, auto_increment = false)]

0 commit comments

Comments
 (0)